package com.augurit.wf.common.form;

import com.augurit.wf.bi.web.form.WfBusInstanceTaskForm;

public class WfBusSaveResult<T extends WfBusBaseEntity> {
	//属性
	private boolean success; 	//是否执行成功
	private String errMsg; 		//错误消息
	private T form;
	private WfBusInstanceTaskForm task;
	
	public WfBusSaveResult(boolean success, T form, WfBusInstanceTaskForm task) {
		this.success = success;
		this.form = form;
		this.task = task;
	}

	public WfBusSaveResult(boolean success, String errMsg) {
		this.success = success;
		this.errMsg = errMsg;
	}

	public WfBusInstanceTaskForm getTask() {
		return task;
	}

	public void setTask(WfBusInstanceTaskForm task) {
		this.task = task;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public String getErrMsg() {
		return errMsg;
	}

	public void setErrMsg(String errMsg) {
		this.errMsg = errMsg;
	}

	public T getForm() {
		return form;
	}

	public void setForm(T form) {
		this.form = form;
	}
}
